console.log('-----------------严格相等-------------------------------');
const person = {name:'smith',age:78};
const people = [{name:'smith',age:78}];
const newPeople = [person];
console.log(people.indexOf(person));
console.log(newPeople.indexOf(person));
console.log(people.includes(person));
console.log(newPeople.includes(person));
// -1
// 0
// false
// true
console.log('---------------断言函数---------------------------------');
let persons = [{name:'smith',age:45},{name:'alice',age:23},{name:'jerry',age:12}];
console.log(persons.find((item,index,array)=>{//{ name: 'alice', age: 23 }
    return item.age <30;
}));
console.log(persons.findIndex((item,index,arr)=>{//2
    return item.age === 12
}))